﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Core.DBUtility;
using Microhard.Plat.CRM.Stores.Validators;

namespace Microhard.Plat.CRM.Stores.Models
{
    [FluentValidation.Attributes.Validator(typeof(SubKAValidator))]
    public class SubKAModel : BasePermissionModel
    {
        [ModelPKID]
        public Guid SubID { set; get; }
        public Guid KAID { set; get; }
        public string KAName { set; get; }
        public string KACode { set; get; }
        public string Name { set; get; }
        public string Address { set; get; }
        public string Province { set; get; }
        [ModelReadTxtFromoCache(PCDName = PCD.Province, IDFieldName = "Province")]
        public string ProvinceDisplayTxt { set; get; }
        public string City { set; get; }
        [ModelReadTxtFromoCache(PCDName = PCD.City, IDFieldName = "City")]
        public string CityDisplayTxt { set; get; }
        public string Contractor { set; get; }
        public string Cellphone { set; get; }
        public string CustomerCode { set; get; }

        public Guid EmployeeID { set; get; }
        public Guid KAMonitorID { set; get; }

        public double Baidulng { set; get; }
        public double Baidulat { set; get; }

        public List<Guid> SubKAEmployees { set; get; }
    }
}
